package com.jn.gsondemo.entity;

import java.util.List;

public class Data {

    private int code;
    private String message;
    private String path;
    private DataDTO data;
    private ExtraDTO extra;
    private String timestamp;

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    public String getPath() {
        return path;
    }

    public void setPath(String path) {
        this.path = path;
    }

    public DataDTO getData() {
        return data;
    }

    public void setData(DataDTO data) {
        this.data = data;
    }

    public ExtraDTO getExtra() {
        return extra;
    }

    public void setExtra(ExtraDTO extra) {
        this.extra = extra;
    }

    public String getTimestamp() {
        return timestamp;
    }

    public void setTimestamp(String timestamp) {
        this.timestamp = timestamp;
    }

    public static class DataDTO {
        private List<Student> grade2021;
        private List<Student> grade2022;
        private List<Student> grade2023;
        private List<Student> grade2024;

        public List<Student> getGrade2021() {
            return grade2021;
        }

        public void setGrade2021(List<Student> grade2021) {
            this.grade2021 = grade2021;
        }

        public List<Student> getGrade2022() {
            return grade2022;
        }

        public void setGrade2022(List<Student> grade2022) {
            this.grade2022 = grade2022;
        }

        public List<Student> getGrade2023() {
            return grade2023;
        }

        public void setGrade2023(List<Student> grade2023) {
            this.grade2023 = grade2023;
        }

        public List<Student> getGrade2024() {
            return grade2024;
        }

        public void setGrade2024(List<Student> grade2024) {
            this.grade2024 = grade2024;
        }
    }

    public static class ExtraDTO {
    }

    @Override
    public String toString() {
        return "Data{" +
                "code=" + code +
                ", message='" + message + '\'' +
                ", path='" + path + '\'' +
                ", data=" + data +
                ", extra=" + extra +
                ", timestamp='" + timestamp + '\'' +
                '}';
    }
}
